<?php

/**
 * Created by PhpStorm.
 * User: 异步加载
 * Date: 2017/12/29
 * Time: 13:24
 */
namespace app\api\controller;

use think\Controller;
use app\api\service\Token as TokenService;
class BaseController extends Controller
{
    /**
     * 权限检测前置操作 需要大于等于用户权限
     */
    protected function checkPrimaryScope(){
        TokenService::needPrimaryScope();
    }

    /**
     * 权限检查前置操作 要求权限只能是用户
     */
    protected function checkExclusiveScope(){
        TokenService::needExclusiveScope();
    }


}